<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<title th:text="${blog.title+'_小邓的个人博客 - 记录一条程序人生的辛苦与尖酸'}">首页</title>
<meta name="keywords" th:content="${blog.title+'_小邓的个人博客 - 记录一条程序人生的辛苦与尖酸'}"/>
<meta name="description"
	 th:content="${blog.smallContent}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../css/base.css" rel="stylesheet"
	th:href="@{/default/static/css/base.css}">
<link href="../css/index.css" rel="stylesheet"
	th:href="@{/default/static/css/info.css}">
<link href="../css/m.css" rel="stylesheet"
	th:href="@{/default/static/css/m.css}">
	<link href="../css/m.css" rel="stylesheet"
		  th:href="@{/default/static/css/common.css}">
	<link rel="icon" type="image/x-icon" th:href="@{/default/static/favicon.ico}">
	<script src="../js/jquery.min.js"
			th:src="@{/default/static/js/jquery.min.js}"></script>
<!--[if lt IE 9]>
	<script src="js/modernizr.js" th:src="@{/default/static/js/modernizr.js}"></script>
<![endif]-->
<!-- 百度统计代码开始 -->
<div th:replace="model::web_show_js"></div><!-- 引入百度自动推广js -->
<!-- 百度统计代码结束 -->

<script>
	window.onload = function() {
		var oH2 = document.getElementsByTagName("h2")[0];
		var oUl = document.getElementsByTagName("ul")[0];
		oH2.onclick = function() {
			var style = oUl.style;
			style.display = style.display == "block" ? "none" : "block";
			oH2.className = style.display == "block" ? "open" : ""
		}
	}
</script>
</head>
<body>
	<header th:replace="include :: top"></header>

	<article>
		<div class="newblogs">
			<div class="infos">
				<div class="newsview">
					<!-- <h2 class="intitle">您现在的位置是：<a href="/">网站首页</a>&nbsp;&gt;&nbsp;<a href="/">学无止境</a></h2>
         -->
					<h3 class="news_title" th:text="${blog.title}"></h3>
					<div class="news_author">
						<span class="au01">小邓</span><span class="au02"
							th:text="${#dates.format(blog.createTime, 'yyyy-MM-dd')}">2018-03-18</span><span
							class="au03">共<b th:text="${blog.lookNum}">309</b>人围观
						</span>
					</div>
					<div class="tags">
						<a href="javascript:void(0)" th:each="str:${#strings.arraySplit(blog.blogLabels, ',')}"
							><label th:text="${str}"></label> </a>
					</div>
					<div class="news_about">
						<strong>简介</strong>[[${blog.smallContent}]]
					</div>
					<div class="news_infos" th:utext="${blog.content}"></div>
				</div>
			</div>
			<div class="nextinfo">
				<p th:each="blog:${@blogs.getNearBlog(blog.id)}">
					[[${blog.smallContent}]]<a th:href="${blog.id}"
						th:text="${blog.title}" th:title="${blog.title}">传微软将把入门级Surface平板价格下调150美元</a>
				</p>
			</div>
			<div class="otherlink">
				<h2>相关文章</h2>
				<ul>
					<li
						th:each="blog:${@blogs.getRefBlogs(8,'look_num desc',blog.blogLabels)}">
						<a th:href="@{'/front/blogs/'+${blog.id}+'.html'}"
						   th:title="${blog.title}" th:text="${blog.title}">云南之行――丽江古镇玉龙雪山</a>
					</li>
				</ul>
			</div>
			<div class="news_pl">
				<h2>文章评论</h2>
				<div th:utext="${@blogs.getAppSetInfo().commentCode}"></div>
				<ul>
				</ul>
			</div>

		</div>



		<div class="rbox">
			<div class="paihang">
				<h2 class="hometitle">点击排行</h2>
				<ul>
					<li th:each="blog:${@blogs.getBlogs(7,'look_num desc')}"><b><a
							th:href="@{'/front/blogs/'+${blog.id}+'.html'}" target="_blank"
							th:text="${blog.title}"></a></b>
						<p>
							<i><img th:src="${blog.mainPic}" /></i>[[${#strings.abbreviate(blog.smallContent,50)+'...'}]]
						</p></li>
				</ul>
			</div>
			<div class="paihang">
				<h2 class="hometitle">本栏推荐</h2>
				<ul>
					<li
						th:each="blog:${@blogs.getBlogs(7,'look_num desc,create_time desc')}"><b><a
							th:href="@{'/front/blogs/'+${blog.id}+'.html'}" target="_blank"
							th:text="${blog.title}"></a></b>
						<p>
							<i><img th:src="${blog.mainPic}" /></i>[[${#strings.abbreviate(blog.smallContent,50)+'...'}]]
						</p></li>
				</ul>
			</div>

			<div class="weixin">
				<h2 class="hometitle">官方微信</h2>
				<ul>
					<img th:src="${@blogs.getAppSetInfo().applogo}">
				</ul>
			</div>
		</div>


	</article>
	<footer th:replace="include :: footer">
	</footer>


	<div th:replace="include :: qqchat"></div>
</body>
</html>
